﻿<Window x:Class="Simp.Interpreter.MainWindow"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:local="clr-namespace:Simp.Interpreter"
	Loaded="Window_Loaded"
    Title="Simp Interpreter" Height="500" Width="800">
	<Window.Resources>
		<Style TargetType="TextBox">
			<Setter Property="FontSize" Value="16"/>
		</Style>
		<Style TargetType="TextBlock">
			<Setter Property="FontSize" Value="18"/>
		</Style>
	</Window.Resources>
	<Window.CommandBindings>
		<CommandBinding Command="ApplicationCommands.New" Executed="OnNewCommand"/>
		<CommandBinding Command="ApplicationCommands.Open" Executed="OnOpenCommand"/>
	</Window.CommandBindings>
	<DockPanel LastChildFill="True">
		<!--	Menu	-->
		<Menu DockPanel.Dock="Top">
			<MenuItem Header="_File">
				<MenuItem Command="ApplicationCommands.New"/>
				<MenuItem Command="ApplicationCommands.Open" Header="Open Simp File..."/>
				<Separator/>
				<MenuItem Name="recentFilesMenu" Header="_Recent Files"/>
			</MenuItem>
			<MenuItem Header="_Edit"/>
			<MenuItem Header="_Help"/>
		</Menu>
		<!--	Main Content	-->
		<Grid>
			<Grid.RowDefinitions>
				<RowDefinition Height="Auto"/>
				<RowDefinition Height="5*"/>
				<RowDefinition Height="1*"/>
			</Grid.RowDefinitions>
			<local:ErrorOutputControl Grid.Row="0" x:Name="errorOutputControl" Background="Orange"/>
			<local:GraphOutputUserControl Grid.Row="1" x:Name="graphOutputUserControl"/>
			<local:TextOutputUserControl Grid.Row="1" x:Name="textOutputControl" Background="#EEFFFF"/>
			<GridSplitter Grid.Row="1" Height="3" HorizontalAlignment="Stretch" VerticalAlignment="Bottom"/>
			<local:InputUserControl Grid.Row="2" x:Name="inputControl" NewFunction="inputControl_NewFunction" />
		</Grid>
	</DockPanel>
</Window>